<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSendPhoneSiteTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('send_phone_site', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id')->comment('领取用户id')->index();
            $table->char('phone_id',11)->comment('领取电话号码id');
            $table->char('name',30)->comment('用户姓名');
            $table->char('user_phone',11)->comment('联系电话号码');
            $table->string('site', 255)->comment('用户地址');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('send_phone_site');
    }
}
